﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Zy.WPF.CtrLib;
using Zy.WPF.CtrLib.Ctrs;
using Zy.WPF.CtrLib.Windows;

namespace Zy.WPF
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : ZyWindowEx
    {
        public MainWindow()
        {
            InitializeComponent();
            OpenDialogBtn.Click += OpenDialogBtn_Click;
        }
        /// <summary>
        /// 弹窗按钮点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OpenDialogBtn_Click(object sender, RoutedEventArgs e)
        {
            ZyDialog zyDialog = new ZyDialog(TbTest1.Text);
            zyDialog.ShowDialog();
        }
        /// <summary>
        /// 拖动
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }
        /// <summary>
        /// 鼠标在窗口内移动
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_MouseMove(object sender, MouseEventArgs e)
        {

        }
        /// <summary>
        /// 点击页码按钮
        /// </summary>
        /// <param name="value"></param>
        private void Onclick(int value)
        {
            ZyMessageTipWindow messageTip =new ZyMessageTipWindow();
            messageTip.Message ="当前点击页码："+ value.ToString();
            messageTip.Show();
        }
    }
}
